
package pd.trabalho.pkg1415;


public class Msg {
    protected String cmd;


    public Msg(String cmd) {
        this.cmd = cmd;
    }
    public Msg(){}
    
    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    class login{
        protected String user;
        protected String pw;

        public login(String user, String pw) {
            this.user = user;
            this.pw = pw;
        }

        login() {
            
        }
        
        public String getUser() {
            return user;
        }

        public String getPw() {
            return pw;
        }

        public void setUser(String user) {
            this.user = user;
        }

        public void setPw(String pw) {
            this.pw = pw;
        }

    }
    
    class IP{
        protected String ip_Rep;
        protected int port;

        public IP(){}
        public IP(String ip, int port) {
            this.ip_Rep = ip;
            this.port = port;
        }

        public String getIp() {
            return ip_Rep;
        }

        public int getPort() {
            return port;
        }

        public void setIp_Rep(String ip_Rep) {
            this.ip_Rep = ip_Rep;
        }

        public void setPort(int port) {
            this.port = port;
        }
    }
 
}
